package cn.li.security.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin")
//@PreAuthorize("hasRole('admin')")
public class AdminController {

    @GetMapping("")
    public String index(){
        return "这是管理员的界面";
    }
}
